const LayoutIndex = () => import('@/pages/layout/index')
const Login = () => import('@/pages/login/login.vue')
const Reset = () => import('@/pages/login/reset.vue')
// const DashBoard = () => import('@/pages/dashboard/index')
// const homePageText = [{ title: '首页' }]
const Welcome = () => import('@/pages/login/welcome.vue')

export default [
  {
    path: '/',
    name: '/',
    redirect: '/login'
  }, {
    path: '/login',
    name: 'login',
    component: Login,
    meta: {
      toLogin: true
    }
  },
  {
    path: '',
    name: '',
    title: '',
    component: LayoutIndex,
    children: [
      {
        path: '/welcome',
        name: 'welcome',
        component: Welcome
      }
    ]
  },
  {
    path: '/reset',
    name: 'reset',
    component: Reset,
    meta: {
      toLogin: true
    }
  }, {
    path: '',
    name: '',
    title: '首页',
    icon: 'fa fa-th-large',
    leaf: true, // 只有一个节点
    component: LayoutIndex,
    children: [
      {
        path: '/systemSettings/user/list',
        name: 'list',
        component: r => require.ensure([], () => r(require('@/pages/systemSettings/user/list')), 'list'),
        meta: {
          toLogin: true,
          bread: [{
            title: '系统设置',
            name: '/'
          }, {
            title: '用户管理',
            name: 'list'
          }]
        }
      },
      {
        path: '/systemSettings/user/addUser',
        name: 'addUser',
        component: r => require.ensure([], () => r(require('@/pages/systemSettings/user/addUser')), 'addUser'),
        meta: {
          toLogin: true,
          bread: [{
            title: '系统设置',
            name: '/'
          }, {
            title: '用户管理',
            name: 'list'
          }, {
            title: '新增用户',
            name: 'addUser'
          }]
        }
      },
      {
        path: '/systemSettings/user/edit',
        name: 'edit',
        component: r => require.ensure([], () => r(require('@/pages/systemSettings/user/edit')), 'edit'),
        meta: {
          toLogin: true,
          bread: [{
            title: '系统设置',
            name: '/'
          }, {
            title: '用户管理',
            name: 'list'
          }, {
            title: '编辑用户',
            name: 'list'
          }]
        }
      },
      {
        path: '/systemSettings/shareScheme/list',
        name: 'shareScheme',
        component: r => require.ensure([], () => r(require('@/pages/systemSettings/shareScheme/list')), 'shareScheme'),
        meta: {
          toLogin: true,
          bread: [{
            title: '系统设置',
            name: '/'
          }, {
            title: '共享方案',
            name: 'shareScheme'
          }]
        }
      },
      {
        path: '/systemSettings/shareScheme/addShareScheme',
        name: 'addShareScheme',
        component: r => require.ensure([], () => r(require('@/pages/systemSettings/shareScheme/addScheme')), 'addShareScheme'),
        meta: {
          toLogin: true,
          bread: [{
            title: '系统设置',
            name: '/'
          }, {
            title: '共享方案',
            name: 'shareScheme'
          }, {
            title: '新增方案',
            name: 'addShareScheme'
          }]
        }
      },
      {
        path: '/systemSettings/shareScheme/editShareScheme/:id',
        name: 'editShareScheme',
        component: r => require.ensure([], () => r(require('@/pages/systemSettings/shareScheme/addScheme')), 'editShareScheme'),
        meta: {
          toLogin: true,
          bread: [{
            title: '系统设置',
            name: '/'
          }, {
            title: '共享方案',
            name: 'shareScheme'
          }, {
            title: '编辑方案',
            name: 'editShareScheme'
          }]
        }
      },
      {
        path: '/systemSettings/sharePlan/list',
        name: 'sharePlanList',
        component: r => require.ensure([], () => r(require('@/pages/systemSettings/sharePlan/list')), 'sharePlanList'),
        meta: {
          toLogin: true,
          bread: [{
            title: '系统设置',
            name: '/'
          }, {
            title: '共享方案组',
            name: 'sharePlanList'
          }]
        }
      },
      {
        path: '/systemSettings/sharePlan/sharePlanAddScheme/:id',
        name: 'sharePlanAddScheme',
        component: r => require.ensure([], () => r(require('@/pages/systemSettings/sharePlan/addScheme')), 'sharePlanAddScheme'),
        meta: {
          toLogin: true,
          bread: [{
            title: '系统设置',
            name: '/'
          }, {
            title: '共享方案组',
            name: 'sharePlanList'
          }, {
            title: '新增共享方案组',
            name: 'sharePlanAddScheme'
          }]
        }
      },
      {
        path: '/systemSettings/role/list',
        name: 'roleList',
        component: r => require.ensure([], () => r(require('@/pages/systemSettings/role/list')), 'roleList'),
        meta: {
          toLogin: true,
          bread: [{
            title: '系统设置',
            name: '/'
          }, {
            title: '角色管理',
            name: 'roleList'
          }]
        }
      },
      {
        path: '/systemSettings/role/edit',
        name: 'roleEdit',
        component: r => require.ensure([], () => r(require('@/pages/systemSettings/role/edit')), 'roleEdit'),
        meta: {
          toLogin: true,
          title: '角色编辑',
          bread: [{
            title: '系统设置',
            name: '/'
          }, {
            title: '角色管理',
            name: 'roleList'
          }, {
            title: '编辑角色',
            name: 'roleEdit'
          }]
        }
      },
      {
        path: '/systemSettings/role/addRole',
        name: 'addRole',
        component: r => require.ensure([], () => r(require('@/pages/systemSettings/role/addRole')), 'addRole'),
        meta: {
          toLogin: true,
          title: '新增角色',
          bread: [{
            title: '系统设置',
            name: '/'
          }, {
            title: '角色管理',
            name: 'roleList'
          }, {
            title: '新增角色',
            name: 'addRole'
          }]
        }
      },
      {
        path: '/systemSettings/dictionaries/addDictionaries',
        name: 'addDictionaries',
        component: r => require.ensure([], () => r(require('@/pages/systemSettings/dictionaries/addDiction')), 'addDictionaries'),
        meta: {
          toLogin: true,
          title: '新增字典',
          bread: [{
            title: '系统设置',
            name: '/'
          }, {
            title: '字典管理',
            name: 'dictionariesList'
          }, {
            title: '新增字典',
            name: 'addDictionaries'
          }]
        }
      },
      {
        path: '/systemSettings/dictionaries/dictionariesList',
        name: 'dictionariesList',
        component: r => require.ensure([], () => r(require('@/pages/systemSettings/dictionaries/list')), 'dictionariesList'),
        meta: {
          toLogin: true,
          title: '字典列表',
          bread: [{
            title: '系统设置',
            name: '/'
          }, {
            title: '字典管理',
            name: 'dictionariesList'
          }]
        }
      },
      {
        path: '/systemSettings/dictionaries/editDictionaries',
        name: 'editDictionaries',
        component: r => require.ensure([], () => r(require('@/pages/systemSettings/dictionaries/edit')), 'editDictionaries'),
        meta: {
          toLogin: true,
          title: '编辑字典',
          bread: [{
            title: '系统设置',
            name: '/'
          }, {
            title: '字典管理',
            name: 'dictionariesList'
          }, {
            title: '编辑字典',
            name: 'editDictionaries'
          }]
        }
      },
      {
        path: '/systemSettings/jurisdiction/jurisdictionList',
        name: 'jurisdictionList',
        component: r => require.ensure([], () => r(require('@/pages/systemSettings/jurisdiction/list')), 'jurisdictionList'),
        meta: {
          toLogin: true,
          title: '权限列表',
          bread: [{
            title: '系统设置',
            name: '/'
          }, {
            title: '权限管理',
            name: 'jurisdictionList'
          }]
        }
      },
      {
        path: '/systemSettings/jurisdiction/jurisdictionAdd',
        name: 'jurisdictionAdd',
        component: r => require.ensure([], () => r(require('@/pages/systemSettings/jurisdiction/add')), 'jurisdictionEdit'),
        meta: {
          toLogin: true,
          title: '新增权限',
          bread: [{
            title: '系统设置',
            name: '/'
          }, {
            title: '权限管理',
            name: 'jurisdictionList'
          }, {
            title: '新增权限',
            name: 'jurisdictionAdd'
          }]
        }
      },
      {
        path: '/systemSettings/jurisdiction/jurisdictionEdit',
        name: 'jurisdictionEdit',
        component: r => require.ensure([], () => r(require('@/pages/systemSettings/jurisdiction/edit')), 'jurisdictionEdit'),
        meta: {
          toLogin: true,
          title: '编辑权限',
          bread: [{
            title: '系统设置',
            name: '/'
          }, {
            title: '权限管理',
            name: 'jurisdictionList'
          }, {
            title: '编辑权限',
            name: 'jurisdictionEdit'
          }]
        }
      },
      {
        path: '/systemSettings/seriaNumber',
        name: 'seriaNumber',
        meta: {
          index: 'wbs0011',
          bread: [{
            title: '系统配置',
            name: 'seriaNumber'
          }, {
            title: '单号规则设置',
            name: 'seriaNumber'
          }]
        },
        component: () => import('@/pages/systemSettings/seriaNumber/index')
      },
      {
        path: '/systemSettings/createmSeria/:id',
        name: 'createmSeria',
        meta: {
          index: 'wbs0012',
          bread: [{
            title: '系统配置',
            name: 'seriaNumber'
          }, {
            title: '单号规则设置',
            name: 'seriaNumber'
          }, {
            title: '新增单号规则',
            name: 'createmSeria'
          }]
        },
        component: () => import('@/pages/systemSettings/seriaNumber/createSeria')
      },
      {
        path: '/systemSettings/operationLogs/list',
        name: 'operationLogs',
        component: r => require.ensure([], () => r(require('@/pages/systemSettings/operationLogs/index')), 'operationLogs'),
        meta: {
          toLogin: true,
          bread: [{
            title: '系统设置',
            name: '/'
          }, {
            title: '日志管理',
            name: 'operationLogs'
          }]
        }
      }
    ]
  },
  {
    path: '/',
    name: '',
    title: '主档数据',
    component: LayoutIndex,
    children: [
      {
        path: '/masterdata/area',
        name: 'area',
        meta: {
          index: 'wbs0013',
          bread: [{
            title: '主档数据',
            name: '/'
          }, {
            title: '区域维护',
            name: 'area'
          }]
        },
        component: () => import('@/pages/masterdata/area/index')
      },
      {
        path: '/masterdata/createmArea/:id',
        name: 'createmArea',
        meta: {
          index: 'wbs0013',
          bread: [{
            title: '主档数据',
            name: '/'
          }, {
            title: '区域维护',
            name: 'area'
          }, {
            title: '新增区域',
            name: 'createmArea'
          }]
        },
        component: () => import('@/pages/masterdata/area/creat')
      },
      {
        path: '/masterdata/warehouse',
        name: 'warehouse',
        meta: {
          index: 'wbs0014',
          bread: [{
            title: '主档数据',
            name: '/'
          }, {
            title: '仓库维护',
            name: 'warehouse'
          }]
        },
        component: () => import('@/pages/masterdata/warehouse/index')
      },
      {
        path: '/masterdata/createWarehouse/:id',
        name: 'createWarehouse',
        meta: {
          index: 'wbs0013',
          bread: [{
            title: '主档数据',
            name: '/'
          }, {
            title: '仓库维护',
            name: 'warehouse'
          }, {
            title: '新增仓库',
            name: 'createWarehouse'
          }]
        },
        component: () => import('@/pages/masterdata/warehouse/createWarehouse')
      },
      {
        path: '/masterdata/brand',
        name: 'brand',
        meta: {
          index: 'wbs0014',
          bread: [{
            title: '主档数据',
            name: '/'
          }, {
            title: '品牌维护',
            name: 'brand'
          }]
        },
        component: () => import('@/pages/masterdata/brand/index')
      },
      {
        path: '/masterdata/createBrand/:id',
        name: 'createBrand',
        meta: {
          index: 'wbs0014',
          bread: [{
            title: '主档数据',
            name: '/'
          }, {
            title: '品牌维护',
            name: 'brand'
          }, {
            title: '新增品牌',
            name: 'createBrand'
          }]
        },
        component: () => import('@/pages/masterdata/brand/createBrand')
      },
      {
        path: '/masterdata/goodsCategory',
        name: 'goodsCategory',
        meta: {
          index: 'wbs0015',
          bread: [{
            title: '主档数据',
            name: '/'
          }, {
            title: '商品分类维护',
            name: 'goodsCategory'
          }]
        },
        component: () => import('@/pages/masterdata/goodsCategory/index')
      },
      {
        path: '/masterdata/createGoodsCategory/:id',
        name: 'createGoodsCategory',
        meta: {
          index: 'wbs0016',
          bread: [{
            title: '主档数据',
            name: '/'
          }, {
            title: '商品分类维护',
            name: 'goodsCategory'
          }, {
            title: '新增分类',
            name: 'createGoodsCategory'
          }]
        },
        component: () => import('@/pages/masterdata/goodsCategory/createGoods')
      },
      {
        path: '/masterdata/smellVindicate',
        name: 'smellVindicate',
        meta: {
          index: 'wbs0017',
          bread: [{
            title: '主档数据',
            name: '/'
          }, {
            title: '味道维护',
            name: 'smellVindicate'
          }]
        },
        component: () => import('@/pages/masterdata/smellVindicate/index')
      },
      {
        path: '/masterdata/createSmell/:id',
        name: 'createSmell',
        meta: {
          index: 'wbs0018',
          bread: [{
            title: '主档数据',
            name: '/'
          }, {
            title: '味道维护',
            name: 'smellVindicate'
          }, {
            title: '新增味道',
            name: 'createSmell'
          }]
        },
        component: () => import('@/pages/masterdata/smellVindicate/createSmell')
      },
      {
        path: '/masterdata/series',
        name: 'series',
        meta: {
          index: 'wbs0019',
          bread: [{
            title: '主档数据',
            name: '/'
          }, {
            title: '系列维护',
            name: 'series'
          }]
        },
        component: () => import('@/pages/masterdata/series/index')
      },
      {
        path: '/masterdata/createSeries/:id',
        name: 'createSeries',
        meta: {
          index: 'wbs0020',
          bread: [{
            title: '主档数据',
            name: '/'
          }, {
            title: '系列维护',
            name: 'series'
          }, {
            title: '新增系列',
            name: 'createSeries'
          }]
        },
        component: () => import('@/pages/masterdata/series/createSeries')
      },
      {
        path: '/masterdata/company',
        name: 'company',
        meta: {
          index: 'wbs0021',
          bread: [{
            title: '系统管理',
            name: '/'
          }, {
            title: '公司维护',
            name: 'company'
          }]
        },
        component: () => import('@/pages/masterdata/company/index')
      },
      {
        path: '/masterdata/createCompany/:id',
        name: 'createCompany',
        meta: {
          index: 'wbs0022',
          bread: [{
            title: '系统管理',
            name: '/'
          }, {
            title: '公司维护',
            name: 'company'
          }, {
            title: '新增公司',
            name: 'createCompany'
          }]
        },
        component: () => import('@/pages/masterdata/company/createCompany')
      },
      {
        path: '/masterdata/directStore',
        name: 'directStore',
        meta: {
          index: 'wbs0023',
          bread: [{
            title: '主档数据',
            name: '/'
          }, {
            title: '直营门店维护',
            name: 'directStore'
          }]
        },
        component: () => import('@/pages/masterdata/directStore/index')
      },
      {
        path: '/masterdata/createStore/:id',
        name: 'createStore',
        meta: {
          index: 'wbs0024',
          bread: [{
            title: '主档数据',
            name: '/'
          }, {
            title: '直营门店维护',
            name: 'directStore'
          }, {
            title: '新增门店',
            name: 'createStore'
          }]
        },
        component: () => import('@/pages/masterdata/directStore/createStore')
      },
      {
        path: '/masterdata/agent',
        name: 'agent',
        meta: {
          index: 'wbs0025',
          bread: [{
            title: '主档数据',
            name: '/'
          }, {
            title: '代理商维护',
            name: 'agent'
          }]
        },
        component: () => import('@/pages/masterdata/agent/index')
      },
      {
        path: '/masterdata/createAgent/:id',
        name: 'createAgent',
        meta: {
          index: 'wbs0026',
          bread: [{
            title: '主档数据',
            name: '/'
          }, {
            title: '代理商维护',
            name: 'agent'
          }, {
            title: '新增代理商',
            name: 'createAgent'
          }]
        },
        component: () => import('@/pages/masterdata/agent/createAgent')
      },
      {
        path: '/masterdata/agentStore',
        name: 'agentStore',
        meta: {
          index: 'wbs0027',
          bread: [{
            title: '主档数据',
            name: '/'
          }, {
            title: '代理商门店维护',
            name: 'agentStore'
          }]
        },
        component: () => import('@/pages/masterdata/agentStore/index')
      },
      {
        path: '/masterdata/createAgentStore/:id',
        name: 'createAgentStore',
        meta: {
          index: 'wbs0028',
          bread: [{
            title: '主档数据',
            name: '/'
          }, {
            title: '代理商门店维护',
            name: 'agentStore'
          }, {
            title: '新增代理商门店',
            name: 'createAgentStore'
          }]
        },
        component: () => import('@/pages/masterdata/agentStore/createAgentStore')
      },
      {
        path: '/masterdata/provider',
        name: 'provider',
        meta: {
          index: 'wbs0029',
          bread: [{
            title: '主档数据',
            name: '/'
          }, {
            title: '供应商维护',
            name: 'provider'
          }]
        },
        component: () => import('@/pages/masterdata/provider/index')
      },
      {
        path: '/masterdata/createProvider/:id',
        name: 'createProvider',
        meta: {
          index: 'wbs0030',
          bread: [{
            title: '主档数据',
            name: '/'
          }, {
            title: '供应商维护',
            name: 'provider'
          }, {
            title: '新增供应商',
            name: 'createProvider'
          }]
        },
        component: () => import('@/pages/masterdata/provider/createProvider')
      },
      {
        path: '/masterdata/framework',
        name: 'framework',
        meta: {
          index: 'wbs0031',
          bread: [{
            title: '主档数据',
            name: '/'
          }, {
            title: '组织架构维护',
            name: 'framework'
          }]
        },
        component: () => import('@/pages/masterdata/framework/index')
      },
      {
        path: '/masterdata/createDepartment/:id',
        name: 'createDepartment',
        meta: {
          index: 'wbs0032',
          bread: [{
            title: '主档数据',
            name: '/'
          }, {
            title: '组织结构维护',
            name: 'framework'
          }, {
            title: '新增部门',
            name: 'createDepartment'
          }]
        },
        component: () => import('@/pages/masterdata/framework/createDepartment')
      },
      {
        path: '/masterdata/goodsInfo',
        name: 'goodsInfo',
        meta: {
          index: 'wbs0033',
          bread: [{
            title: '主档数据',
            name: '/'
          }, {
            title: '商品资料维护',
            name: 'goodsInfo'
          }]
        },
        component: () => import('@/pages/masterdata/goodsInfo/index')
      },
      {
        path: '/masterdata/createGoodsInfo/:id',
        name: 'createGoodsInfo',
        meta: {
          index: 'wbs0034',
          bread: [{
            title: '主档数据',
            name: '/'
          }, {
            title: '商品资料维护',
            name: 'goodsInfo'
          }, {
            title: '新增商品',
            name: 'createGoodsInfo'
          }]
        },
        component: () => import('@/pages/masterdata/goodsInfo/createGoodsInfo')
      },
      {
        path: '/masterdata/taxrate',
        name: 'taxrate',
        meta: {
          index: 'wbs0035',
          bread: [{
            title: '主档数据',
            name: '/'
          }, {
            title: '税率',
            name: 'taxrate'
          }]
        },
        component: () => import('@/pages/masterdata/taxation/index')
      },
      {
        path: '/masterdata/createTaxrate/:id',
        name: 'createTaxrate',
        meta: {
          index: 'wbs0034',
          bread: [{
            title: '主档数据',
            name: '/'
          }, {
            title: '税率',
            name: 'taxrate'
          }, {
            title: '新增税率',
            name: 'createTaxrate'
          }]
        },
        component: () => import('@/pages/masterdata/taxation/create')
      }
    ]
  },
  {
    path: '/',
    name: '',
    title: '订单数据',
    component: LayoutIndex,
    children: [
      {
        path: '/directOrder',
        name: 'directOrder',
        meta: {
          index: 'wbs0035',
          bread: [{
            title: '直营店退订货',
            name: '/'
          }, {
            title: '直营店订货单',
            name: 'directOrder'
          }]
        },
        component: () => import('@/pages/orderManagement/directOrder/index')
      },
      {
        path: '/createDirectOrder/:id',
        name: 'createDirectOrder',
        meta: {
          index: 'wbs0036',
          bread: [{
            title: '直营店退订货',
            name: '/'
          }, {
            title: '直营店订货单',
            name: 'directOrder'
          }, {
            title: '新增订货单',
            name: 'createDirectOrder'
          }]
        },
        component: () => import('@/pages/orderManagement/directOrder/createOrder')
      },
      {
        path: '/directOrderCheck',
        name: 'directOrderCheck',
        meta: {
          index: 'wbs0037',
          bread: [{
            title: '直营店退订货',
            name: '/'
          }, {
            title: '直营店订货审核列表',
            name: 'directOrderCheck'
          }]
        },
        component: () => import('@/pages/orderManagement/directOrder/directOrderCheck')
      },
      {
        path: '/directRefund',
        name: 'directRefund',
        meta: {
          index: 'wbs0038',
          bread: [{
            title: '直营店退订货',
            name: '/'
          }, {
            title: '直营店退货单',
            name: 'directRefund'
          }]
        },
        component: () => import('@/pages/orderManagement/directRefund/index')
      },
      {
        path: '/createDirectRefund/:id',
        name: 'createDirectRefund',
        meta: {
          index: 'wbs0039',
          bread: [{
            title: '直营店退订货',
            name: '/'
          }, {
            title: '直营店订货单',
            name: 'directRefund'
          }, {
            title: '退货信息维护',
            name: 'createDirectRefund'
          }]
        },
        component: () => import('@/pages/orderManagement/directRefund/createRefund')
      },
      {
        path: '/directRefundCheck',
        name: 'directRefundCheck',
        meta: {
          index: 'wbs0040',
          bread: [{
            title: '直营店退订货',
            name: '/'
          }, {
            title: '直营店退货审核列表',
            name: 'directRefundCheck'
          }]
        },
        component: () => import('@/pages/orderManagement/directRefund/directRefundCheck')
      },
      {
        path: '/onlineOrder',
        name: 'onlineOrder',
        meta: {
          index: 'wbs0041',
          bread: [{
            title: '在线平台退订货',
            name: '/'
          }, {
            title: '平台订货列表',
            name: 'onlineOrder'
          }]
        },
        component: () => import('@/pages/orderManagement/onlineOrder/index')
      },
      {
        path: '/createOnlineOrder/:id',
        name: 'createOnlineOrder',
        meta: {
          index: 'wbs0042',
          bread: [{
            title: '在线平台退订货',
            name: '/'
          }, {
            title: '平台订货列表',
            name: 'onlineOrder'
          }, {
            title: '新增订货单',
            name: 'createOnlineOrder'
          }]
        },
        component: () => import('@/pages/orderManagement/onlineOrder/createOrder')
      },
      {
        path: '/onlineOrderCheck',
        name: 'onlineOrderCheck',
        meta: {
          index: 'wbs0043',
          bread: [{
            title: '在线平台退订货',
            name: '/'
          }, {
            title: '平台订货审核列表',
            name: 'onlineOrderCheck'
          }]
        },
        component: () => import('@/pages/orderManagement/onlineOrder/onlineOrderCheck')
      },
      {
        path: '/onlineRefund',
        name: 'onlineRefund',
        meta: {
          index: 'wbs0044',
          bread: [{
            title: '在线平台退订货',
            name: '/'
          }, {
            title: '平台退货列表',
            name: 'onlineRefund'
          }]
        },
        component: () => import('@/pages/orderManagement/onlineRefund/index')
      },
      {
        path: '/createOnlineRefund/:id',
        name: 'createOnlineRefund',
        meta: {
          index: 'wbs0045',
          bread: [{
            title: '在线平台退订货',
            name: '/'
          }, {
            title: '平台退货列表',
            name: 'onlineRefund'
          }, {
            title: '新增退货单',
            name: 'createOnlineRefund'
          }]
        },
        component: () => import('@/pages/orderManagement/onlineRefund/createRefund')
      },
      {
        path: '/onlineRefundCheck',
        name: 'onlineRefundCheck',
        meta: {
          index: 'wbs0046',
          bread: [{
            title: '在线平台退订货',
            name: '/'
          }, {
            title: '平台退货审核列表',
            name: 'onlineRefundCheck'
          }]
        },
        component: () => import('@/pages/orderManagement/onlineRefund/onlineRefundCheck')
      }
    ]
  },
  {
    path: '/',
    name: '',
    title: '配置中心',
    component: LayoutIndex,
    children: [
      {
        path: '/transactionConfig',
        name: 'transactionConfig',
        meta: {
          index: 'wbs0047',
          bread: [{
            title: '配置中心',
            name: '/'
          }, {
            title: '内部交易主体配置',
            name: 'transactionConfig'
          }]
        },
        component: () => import('@/pages/configCenter/transactionConfig/index')
      }
    ]
  },
  {
    path: '/',
    name: '',
    title: '委外加工',
    component: LayoutIndex,
    children: [
      {
        path: '/subcontract/subcontractPlan',
        name: 'subcontractPlan',
        meta: {
          index: 'wbs0048',
          bread: [{
            title: '委外加工',
            name: '/'
          }, {
            title: '委外计划单',
            name: 'subcontractPlan'
          }]
        },
        component: () => import('@/pages/subcontract/subcontractPlan/index')
      },
      {
        path: '/subcontract/createPlan/:id',
        name: 'createPlan',
        meta: {
          index: 'wbs0049',
          bread: [{
            title: '委外加工',
            name: '/'
          }, {
            title: '委外计划单',
            name: 'subcontractPlan'
          }, {
            title: '新增委外计划单',
            name: 'createPlan'
          }]
        },
        component: () => import('@/pages/subcontract/subcontractPlan/createPlan')
      }
    ]
  },
  {
    path: '/',
    name: '',
    title: '入库管理',
    component: LayoutIndex,
    children: [
      {
        path: '/availablegoods',
        name: 'availablegoods',
        meta: {
          index: 'wbs0050',
          bread: [{
            title: '入库管理',
            name: '/'
          }, {
            title: '可提货商品列表',
            name: 'availablegoods'
          }]
        },
        component: () => import('@/pages/inboundManagement/availableGoods/index')
      },
      {
        path: '/osinbound',
        name: 'osinbound',
        meta: {
          index: 'wbs0051',
          bread: [{
            title: '入库管理',
            name: '/'
          }, {
            title: '委外入库单列表',
            name: 'osinbound'
          }]
        },
        component: () => import('@/pages/inboundManagement/osInbound/index')
      },
      {
        path: '/osinbound/create',
        name: 'createOsInbound',
        meta: {
          index: 'wbs0052',
          bread: [{
            title: '入库管理',
            name: '/'
          }, {
            title: '委外入库单列表',
            name: 'osinbound'
          }, {
            title: '新增委外入库单',
            name: 'createOsInbound'
          }]
        },
        component: () => import('@/pages/inboundManagement/osInbound/modify')
      },
      {
        path: '/osinbound/edit',
        name: 'editOsInbound',
        meta: {
          index: 'wbs0053',
          bread: [{
            title: '入库管理',
            name: '/'
          }, {
            title: '委外入库单列表',
            name: 'osinbound'
          }, {
            title: '编辑委外入库单',
            name: 'editOsInbound'
          }]
        },
        component: () => import('@/pages/inboundManagement/osInbound/modify')
      }
    ]
  }
]
